import angular from 'angular' 

class GoService {
    constructor($http, ConfigService) {
        this.$http = $http;
        this.host = ConfigService.apiServerUrl;
    }

    getConfig() {
        return {x : 10, y : 10};
    }

    getUsers() {
        return this.$http.get(this.host + '/admin/users/manager')
            .then(result => {
                return result.data.data;
            });
    }


}

GoService.$inject = ['$http', 'configService'];

export default angular.module('services.go', [])
    .service('goService', GoService)
    .name;
